
package com.scalar.chiptrack.operations.process.forms;

import com.scalar.chiptrack.ChipTrackActionForm;

public class WaferStoreForm extends ChipTrackActionForm {

    private String m_productName = null;
    private String m_minLevel = null;
    private String m_maxLevel = null;
    private String m_maxTime = null;
    private String m_comments = null;
    private String[] m_locations = null;
    private int m_baseProductId = -1;
    private String m_baseProductName = null;
    private int m_previousStepId = -1;
    private int m_trackID = -1;
    private int m_processStepID = -1;
    private String m_stepName = null;
    
	private String [] dupProductName = new String[0];
    
    
    public WaferStoreForm() {
    }
    
    public WaferStoreForm (String minLevel,
                             String maxLevel,
                             String maxTime,
                             String productName,
                             int baseProductId,
                             String stepName,
                             String comments,
                             int previousStepID) {
        m_minLevel = minLevel;
        m_maxLevel = maxLevel;
        m_maxTime = maxTime;
        m_productName = productName;
        m_baseProductId = baseProductId;
        m_stepName = stepName;
        m_comments = comments;
        m_previousStepId = previousStepID;

		//System.out.println("m_previousStepID "+m_previousStepId);

    }
    
    public String getStepName() {
        return m_stepName;
    }
    public void setStepName (String stepName) {
        m_stepName = stepName;
    }
    
    public int getProcessStepId() {
        return m_processStepID;
    }
    public void setProcessStepId (int processStepID) {
        m_processStepID = processStepID;
    }
    
    public int getTrackID() {
        return m_trackID;
    }
    public void setTrackID (int trackID) {
        m_trackID = trackID;
    }
    
    public String getBaseProductName() {
        return m_baseProductName;
    }
    public void setBaseProductName (String baseProductName) {
        m_baseProductName = baseProductName;
    }

    public int getPreviousStepId() {
        return m_previousStepId;
    }
    public void setPreviousStepId (int stepId) {
        m_previousStepId = stepId;
    }

    public int getBaseProductId() {
        return m_baseProductId;
    }
    public void setBaseProductId (int productId) {
        m_baseProductId = productId;
    }

    public String getProductName() {
        return m_productName;
    }
    public void setProductName (String name) {
        m_productName = name;
    }

    public String getMinLevel() {
        return m_minLevel;
    }
    public int getMinLevelAsInt() {
        int minLevel = -1;
        try {
            minLevel = Integer.parseInt (m_minLevel);
        }
        catch (NumberFormatException nfe) {
            // Invalid
        }
        return minLevel;
    }
    public void setMinLevel (String level) {
        m_minLevel = level;
    }

    public String getMaxLevel() {
        return m_maxLevel;
    }
    public int getMaxLevelAsInt() {
        int maxLevel = -1;
        try {
            maxLevel = Integer.parseInt (m_maxLevel);
        }
        catch (NumberFormatException nfe) {
            // Invalid
        }
        return maxLevel;
    }
    public void setMaxLevel (String level) {
        m_maxLevel = level;
    }

    public String getMaxTime() {
        return m_maxTime;
    }
    public int getMaxTimeAsInt() {
        int maxTime = -1;
        try {
            maxTime = Integer.parseInt (m_maxTime);
        }
        catch (NumberFormatException nfe) {
            // Invalid
        }
        return maxTime;
    }
    public void setMaxTime (String maxTime) {
        m_maxTime = maxTime;
    }

    public String getComments() {
        return m_comments;
    }
    public void setComments (String comments) {
        m_comments = comments;
    }

    public String[] getLocations() {
        return m_locations;
    }
    public void setLocations (String[] locations) {
        m_locations = locations;
    }

    /**
     * @return String[]
     */
    public String[] getDupProductName()
    {
        return dupProductName;
    }

    /**
     * @param string[]
     */
    public void setDupProductName(String[] strings)
    {
        dupProductName = strings;
    }

}